package com.enjoyor.soa.traffic.server.tsms.common;

import org.springframework.stereotype.Component;

import com.enjoyor.soa.traffic.server.tsms.thead.RehearseThead;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 预测缓存数据
 * @author fzj
 *
 */
@Component
public class RehearseGlobal {
	
	//存储预演线程集合
	public static List<RehearseThead> rehearseThreadlist = new ArrayList<RehearseThead>();
	/**
	 * 存储预测缓存数据
	 * @param rehearseMap 所有线路信息集合
	 * 		@param minBeginLong 最小开始时间
	 * 		@param maxEndLong 最大结束时间
	 * 		@param taskRouteList 线路信息
	 * 		@param taskByTimeMap 线路拆分信息
	 * 		@param clashMap 线路冲突信息
	 */
    public static Map<String, Map<String, Object>> RehearseDataPool = new ConcurrentHashMap<String, Map<String, Object>>();

    //存储方案执行线程数据
	public static Map<String, Map<String,Object>> ActionDataPool = new ConcurrentHashMap<>();
	
	//存储自动控制的视频信息
	public static Map<String, Map<String,Object>> VideoLockPool = new ConcurrentHashMap<>();
	//存储自动控制的信号机信息
	public static Map<String, Map<String,Object>> SignalLockPool = new ConcurrentHashMap<>();
	
	//存储车距报警信息
	public static Map<String, String> alarmDistancePool = new ConcurrentHashMap<>();

}
